import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css';
import * as hongTool from '@/utils/hongUtils.js'
import permission from "./permission.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'




const app = createApp(App).use(store).use(router).use(ElementPlus);
//加载icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 全局方法挂载
app.config.globalProperties.$hongTool = hongTool





app.mount('#app');


